package utils.json.data.backbone;

import models.InformationRequest;
import utils.json.data.AbstractJson;

public class InfoRequestJson extends AbstractJson {
	public InfoRequestJson(InformationRequest infoRequest) {
		put("id", infoRequest.id);
		put("start", infoRequest.start);
		put("end", infoRequest.end);
		put("description", infoRequest.description);
		
		infoRequest.focus.get();
		put("focus", new FocusJson(infoRequest.focus));
		
		put("countUnits", infoRequest.informations.count());
	}
}
